package com.derby;

import java.sql.Connection;
import java.sql.DriverManager;

public class DerbyExample {

	public static void main(String[] args) throws Exception {
		String driver = "org.apache.derby.jdbc.EmbeddedDriver";
		Class.forName(driver).newInstance();
		Connection conn = DriverManager.getConnection("jdbc:derby:target/derbyDB;create=true", "admin", "admin");
		System.out.println(conn);
		Thread.sleep(1000);
		//DriverManager.getConnection(stopUrl, "admin", "admin");
		DriverManager.getConnection("jdbc:derby:;shutdown=true");
	}

}
